<!--<meta http-equiv="refresh" content="1"/>-->
<link href="__PUBLIC__/Home/css/sane.css"  type="text/css" rel="stylesheet"/>
<script src="__PUBLIC__/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<link href="__PUBLIC__/css/bootstrap.css"  type="text/css" rel="stylesheet"/>
<script src="__PUBLIC__/js/bootstrap.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>
<script src="__PUBLIC__/Home/js/forum.js" type="text/javascript"></script>
<div class="c-main-left-content">
    <div class="con_title">
        <h3>论坛交流</h3>
    </div>
    <div class="title_tip">
        <img class="record_icon" src="/Public/img/record_01.jpg"/>
        <span class="record_news">在交谈中，判断比雄辩更重要。</span>
    </div>

    <div class="box_box">
        <div class="user_forum_left">
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>标题：</span>
                </div>
                <if condition="$_getBookAlianceById['feel_title'] eq 1">
                    <input type="text" value="书籍" readonly="">
                </if>
                <if condition="$_getBookAlianceById['feel_title'] eq 2">
                    <input type="text" value="文章" readonly="">
                </if>
                <if condition="$_getBookAlianceById['feel_title'] eq 3">
                    <input type="text" value="段落" readonly="">
                </if>
            </div>
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>发表者名称：</span>
                </div>
                <volist name="_getAllUserInfo" id="vo">
                    <if condition="$_getBookAlianceById['u_id'] eq $vo['u_id']">
                        <input type="text" value="{$vo['u_name']}" readonly="">
                    </if>
                </volist>
            </div>
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>发表时间：</span>
                </div>
                <input type="text" value="{$_getBookAlianceById['feel_time']|date='Y-m-d H:i:s',###}">
            </div>
            <if condition="$_getBookAlianceById['feel_title'] eq 1">
                <div class="user_forum_box">
                    <div class="user_forum_span">
                        <span>书籍名称：</span>
                    </div>
                    <input type="text" value="{$_getBookAlianceById['book_name']}">
                </div>
                <if condition="$_getBookAlianceById['book_page'] neq null">
                    <div class="user_forum_box">
                        <div class="user_forum_span">
                            <span>书签页数：</span>
                        </div>
                        <input type="text" value="{$_getBookAlianceById['book_page']}">
                    </div>
                </if>
            </if>
            <if condition="$_getBookAlianceById['feel_title'] eq 2">
                <div class="user_forum_box">
                    <div class="user_forum_span">
                        <span>文章名称：</span>
                    </div>
                    <input type="text" value="{$_getBookAlianceById['article_name']}">
                </div>
            </if>
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>简介：</span>
                </div>
                <input type="text" value="{$_getBookAlianceById['feel_intor']}">
            </div>
            <div class="user_forum_box">
                <textarea cols="45" rows="10" readonly="">&nbsp;&nbsp;&nbsp;&nbsp;{$_getBookAlianceById['feel_content']}</textarea>
            </div>
        </div>
        <div class="user_forum_right">
            <div class="user_span_right">
                <span>讨论区</span>
            </div>
            <div class="user_text">
                <volist name="_getByIdInfo" id="zo">
                  <div class="user_box_text">
                      <div class="user_text_span">
                          <img src="__PUBLIC__/Admin/img/icon_menu_info.png">
                        <span>
                            <volist name="_getAllUserInfo"  id="so">
                                <if condition="$zo['u_id'] eq $so['u_id']">
                                    {$so['u_name']}
                                </if>
                            </volist>
                        </span>
                          <span>{$zo['forum_time']|date='Y-m-d H:i:s',###}</span>
                          <if condition="getUserId() eq $zo['u_id']">
                              <button type="button" class="del" data-del-id="{$zo['forum_id']}">删除</button>
                              <input type="hidden" value="{:U('Home/BookAliance/forumDel')}" id="del-url">
                          </if>
                      </div>
                      <div class="text_content">
                            {$zo['forum_content']}
                      </div>
                  </div>
                </volist>
            </div>
            <div class="user_shuru">
                <input type="text" name="forum_content" id="forum_content">
            </div>
            <div class="user_shuru1">
                <input type="button" class="add" value="提&nbsp;交" data-id="{$_getBookAlianceById['feel_id']}">
                <input type="hidden" value="{:U('Home/BookAliance/forumChat')}" id="forum-url">
            </div>
        </div>

    </div>
</div>